// Author	: damphat@gmail.com
// Created	: 01/12/2008

#pragma once

#include "vn/System.h"
#include "vn/Vector.h"

void VectorTest() {_test_func_;
	{
		Vector<int> v;
		assert(v.GetCount() == 0);
		v.Add(0);
		v.Add(1);
		assert(v.GetCount() == 2);
		assert(v[0] == 0);
		assert(v[1] == 1);

		REQUIRE_EXCEPTION(v[2]);

		v.Clear();
		assert(v.GetCount() == 0);
		REQUIRE_EXCEPTION(v[0]);

	}
}
